package com.tairanchina.md.meeting.utils;

import com.alibaba.dubbo.common.utils.StringUtils;

public class MeetingRedisKeyUtil {
	/**
	 * 商品数量存储
	 */
	public static final String AWARD_GOODS_NAME = "award_googs_name_";
	/**
	 * 根据数据库重置奖池
	 */
	public static final String  AWARD_GOODS_POOLS_RESET = "award_goods_pools_reset_"; 
	/**
	 * 奖池
	 */
	public static final String AWARD_GOODS_POOLS="award_goods_pools_";
	
	/**
	 * 增加谢谢惠顾的数量
	 */
	//public static final String AWARD_THANK_GOODS_NUM = "award_thank_goods_num"; 
	
	/**
	 * 是否需要刷洗奖池
	 */
	public static final String AWARD_GOODS_POOLS_FLUSH="award_goods_pools_flush_";
	
	public static final String AWARD_GOODS_POOLS_FLUSH_USERNMAE="award_goods_pools_flush_username";
	
	public static final String AWARD_GOODS_POOLS_FLUSH_PASSWORD="award_goods_pools_flush_password";
	
	
	public static String getRedisKey(String base,String date,String businessType){
		StringBuffer sb = new StringBuffer(base);
		if(!StringUtils.isBlank(date)){
			sb.append(date);
		}
		if(!StringUtils.isBlank(businessType)){
			sb.append(businessType);
		}
		return sb.toString();
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
